﻿@model List<CampWeek5__Book_Project_.Models.IndexBookVM>

@{
    ViewBag.Title = "Search Books";
}

<br />
@foreach (var b in Model)
{
    <div class="panel panel-default container featured col-sm-4">
        <div class="panel-body col-sm-12">
            <!--Book Cover-->
            <div class="col-sm-4">
                <img src="@b.BookImg" class="img-responsive img-rounded" />
            </div>
            <div class="col-sm-8">
                <span>@b.Title</span><br />
                <span><i>ISBN: @b.ISBN</i></span><br />
                <span><i>Author: @b.AuthorName</i></span><br />
                <a href="/Home/SelectFeaturedBook/@b.ISBN">Select Book</a>
            </div>
        </div>
    </div>
}